import request from '@/utils/request'

// 查询测试树形列表
export function listTreemenu(query) {
  return request({
    url: '/fuzhu/treemenu/list',
    method: 'get',
    params: query
  })
}

// 查询测试树形详细
export function getTreemenu(id) {
  return request({
    url: '/fuzhu/treemenu/detail?id=' + id,
    method: 'get'
  })
}

// 新增测试树形
export function addTreemenu(data) {
  return request({
    url: '/fuzhu/treemenu/add',
    method: 'post',
    data: data
  })
}

// 修改测试树形
export function updateTreemenu(data) {
  return request({
    url: '/fuzhu/treemenu/edit',
    method: 'put',
    data: data
  })
}

// 删除测试树形
export function delTreemenu(data) {
  return request({
    url: '/fuzhu/treemenu/delete',
    method: 'delete',
    data: data
  })
}
